<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="http://{$Think.server.HTTP_HOST}__TMPL__Public/" />
<script type="text/javascript" src="/JS/WdatePicker/WdatePicker.js"></script>
<title>
<eq name='Think.get.act' value='edit'>
编辑宝宝信息
<else />
添加新宝宝
</eq>
</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/auntion.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.js" language="JavaScript" type="text/javascript"></script>
<script language="javascript">
var userpanel="baby";
</script>
</head>

<body>
<div class="wrap">
  <include file="Public:header" />
  <div class="main">
    <div class="position"><a href="/">首页</a> &gt; <a href="/Member/baby">宝宝档案</a></div>
    <div class="user">
    	<include file="userpanel" />
      <div class="userbox">
        	<div class="user_tab">
            	<ul>
                	<volist name=":BabyList()" id="row">
                    <li rel='{$row.Id}'><a href="/Member/baby/Id/{$row.Id}/act/edit">{$row.name}</a></li>
                    </volist>
                    <li rel=''><a href="/Member/baby/action/add">添加+</a></li>
                    <!--
                    
                	<li class="current"><a href="#">张大宝</a></li>
            		<li><a href="#">李四</a></li>
                    -->
                </ul>
                <script language="javascript">
				$(".user_tab>ul>li[rel='{$data.Id}']").addClass("current");
				</script>
            </div>
            <div class="user_area">
            	<div class="baby">
               	    <div class="update_box">
                    <gt name="data.updatetime|CompareDate" value="0">
                    	您已经有7天没有更新资料，我们已经为您的宝宝大概估算出了目前的身高：<b>47cm</b> 体重：<b>32kg</b>
                    <else />
                    	恭喜，您的资料是最新的拉！
                    </gt>
                    </div>
                    <form action="__ACTION__" method="post" enctype="multipart/form-data">
                    <input name="Id" type="hidden" value="{$data.Id}" />
                    <input name="act" type="hidden" value="{$Think.get.act}" />
                    <div class="babyform">
                        <ul>
                        <li><button type="submit" class="btn btn-success" style="float:right">资料更新</button> 姓 名（小名）：<span><input name="name" type="text" value="{$data.name}" /></span></li>
                        <li>性 别：
                          <select name="xingbie" id="xingbie">
                            <option value="男">男</option>
                            <option value="女">女</option>
                          </select>
                          <script language="javascript">
						  $("#xingbie").val("{$data.xingbie}");
						  </script>
                        </li>
                        <li>生 日：<span><input name="birthday" type="text" id="birthday" value="{$data.birthday}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" /></span></li>
                        <li>身 高：<span><input name="shengao" type="text" id="shengao" style="width:60px" value="{$data.shengao}" /> 厘米 (建议更新)</span></li>
                        <li>体 重：<span><input name="tizhong" type="text" id="tizhong" style="width:60px" value="{$data.tizhong}" /> 公斤 (建议填写)</span></li>
                        <li style="margin-bottom:8px">体 型：
                        <select name="tixing" id="tixing">
                          <option value="偏瘦">偏瘦</option>
                          <option value="适中">适中</option>
                          <option value="偏胖">偏胖</option>
                        </select>
                          <script language="javascript">
						  $("#tixing").val("{$data.tixing}");
						  </script>
                        </li>
                        <li><button type="submit" class="btn btn-success">确认更改</button></li>
                        <li style="text-align:right"><a href="#">查看计划</a><span>(月历本)</span></li>
                        </ul>
                    </div>
                    </form>
                    <div class="tips">
                        <ul>
                       <li>佛山市上市公司供水公司</li>
                        <li>佛山市上市公司供水公司</li>
                         <li>佛山市上市公司供水公司</li>
                        </ul>
                    </div>
               </div>
            </div>
        </div>
      <div class="clear"></div>
    </div>
  </div>
  
  <include file="Public:footer" />
</div>
</body>
</html>
